package com.imooc.modular.wiremock;

import com.github.tomakehurst.wiremock.client.WireMock;

/**
 * wireMock 处理服务器请求
 *
 * @author yuelinbo
 * @date 2019/2/15 15:33
 **/

public class MockServer {


    public static void main(String[] args) {
        WireMock.configureFor("39.105.154.201",8081);
        WireMock.removeAllMappings();

        WireMock.stubFor(WireMock.get(WireMock.urlEqualTo("/order/1"))
        .willReturn(WireMock.aResponse().withBody("{\"id\":1}").withStatus(200)));


    }
}
